package com.sfx.concurrent.demo.JVM.heap;


import java.io.IOException;

public class TestDemo3 {

    private static A a2 = null;

    public static void main(String[] args) throws IOException {
        A a1 = new A();
        B b1 = new B();
        a1.b = b1;
        b1.a = a1;
        System.in.read();
    }
}

class A {
    public Object b;
}

class B {
    public Object a;
}